package com.kfit.java8.interfaces.impl;

import com.kfit.java8.interfaces.Calculator;

public class CalculatorImpl implements Calculator {
	@Override
	public double add(double first,double second) {
		return first+second;
	}

	@Override
	public double sub(double first,double second) {
		return first-second;
	}

	@Override
	public double div(double first,double second) {
		return first/second;
	}

	public double mul(double first,double second) {
		return first*second;
	}
	
	/**
	 * 允许实现类进行覆盖实现.
	 */
	/*@Override
	public double addThree(double first, double second, double Third) {
		return 1;
	}*/
}
